home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_08_06 / 8n06087a < prev    next >
Text File  |  1990-03-12  |  610b  |  25 lines

  1. *****Listing 1*****
  2.  
  3. typedef struct
  4.     {
  5.     char *cf_name;              /* name of function */
  6.     int (*cf_ptr)();            /* pointer to the function */
  7.     short cf_nargs;             /* number of arguments, < 0 means variable */
  8.     } cfunc_t;
  9.  
  10. int fgl_fopen(int);
  11. int fgl_fclose(int);
  12. int fgl_fgets(int);
  13. int fgl_fputs(int);
  14. int fgl_max(int);
  15.  
  16. cfunc_t usrcfuncs[] =
  17.     {
  18.     "fgl_fopen",  fgl_fopen,  2,
  19.     "fgl_fclose", fgl_fclose, 1,
  20.     "fgl_fgets",  fgl_fgets,  1,
  21.     "fgl_fputs",  fgl_fputs,  2,
  22.     "fgl_max",    fgl_max,    -9,
  23.     0L,           0L,         0
  24.     };
  25.